package com.thinkit.bigdata.web.model.es.audioEs;

import java.util.List;

/**
 * Created by hccl on 2018/9/4.
 */
public class ModelRulesDto {
    /**
     * 模型Id
     */
    private Long modelId;
    /**
     * 模型名称
     */
    private String modelName;
    /**
     * 规则ID
     */
    private Long ruleId;
    /**
     * 规则属性 0系统 1人工
     */
    private Integer useFor;
    /**
     * 规则名称
     */
    private String ruleName;
    /**
     * 规则性质 0 非致命性 1致命性 默认0
     */
    private Integer fateful;
    /**
     * 规则单次分值
     */
    private Integer scorePerTime;
    /**
     * 分值，计算得出
     */
    private Integer ruleScore;
    /**
     * 命中量,可以为0，默认1。当为0即没有一条命中，或者说原来的命中错误
     */
    private Integer ruleTimes;
    /**
     * 规则详情
     */
    private List<RuleDetails> ruleDetails;

    public Long getModelId() {
        return modelId;
    }

    public void setModelId(Long modelId) {
        this.modelId = modelId;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public Long getRuleId() {
        return ruleId;
    }

    public void setRuleId(Long ruleId) {
        this.ruleId = ruleId;
    }

    public Integer getUseFor() {
        return useFor;
    }

    public void setUseFor(Integer useFor) {
        this.useFor = useFor;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public Integer getFateful() {
        return fateful;
    }

    public void setFateful(Integer fateful) {
        this.fateful = fateful;
    }

    public Integer getScorePerTime() {
        return scorePerTime;
    }

    public void setScorePerTime(Integer scorePerTime) {
        this.scorePerTime = scorePerTime;
    }

    public Integer getRuleScore() {
        return ruleScore;
    }

    public void setRuleScore(Integer ruleScore) {
        this.ruleScore = ruleScore;
    }

    public Integer getRuleTimes() {
        return ruleTimes;
    }

    public void setRuleTimes(Integer ruleTimes) {
        this.ruleTimes = ruleTimes;
    }

    public List<RuleDetails> getRuleDetails() {
        return ruleDetails;
    }

    public void setRuleDetails(List<RuleDetails> ruleDetails) {
        this.ruleDetails = ruleDetails;
    }

    @Override
    public boolean equals(Object obj) {
        ModelRulesDto inItem = (ModelRulesDto)obj;
        return ruleId.equals(inItem.getRuleId());
    }
}